//
//  Fraction.h
//  OC03_属性_点语法
//
//  Created by dllo on 16/2/26.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject
/** 属性 */
@property (nonatomic, assign) NSInteger denominator;/**< 分母 */

@property (nonatomic, assign) NSInteger numerator;/**< 分子 */


/** 方法 */
- (instancetype)initWithNumerator:(NSInteger)numerator denominator:(NSInteger)denominator;

+ (instancetype)fractionWithNumerator:(NSInteger)numerator denominator:(NSInteger)denominator;


/** 加, 减, 乘, 除 */

- (Fraction *)plusWithFraction:(Fraction *)frac;
@end
